//
//  ViewController.m
//  ZNPhotoView
//
//  Created by zhengn on 16/2/29.
//  Copyright © 2016年 Sniper_Personal. All rights reserved.
//

#import "ViewController.h"
#import "ZNPhotoView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    ZNPhotoView *photoView = [[ZNPhotoView alloc] initWithFrame:CGRectMake(100, 100, 200, 300)];
    [self.view addSubview:photoView];
    [photoView setMaxScale:1.5f];
    [photoView setMinScale:0.5f];
    [photoView setImgNameArr:@[@"zzmx0.jpg", @"zzmx1.jpg", @"zzmx2.jpg", @"zzmx3.jpg"]];
    
    [photoView setImgNameArr:@[@"zzmx0.jpg", @"zzmx1.jpg", @"zzmx2.jpg", @"zzmx0.jpg", @"zzmx1.jpg", @"zzmx2.jpg"]];
    
    [photoView setOtherPageColor:[UIColor orangeColor]];
    [photoView setCurrentPageColor:[UIColor cyanColor]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
